{extend name="base" /}
{block name="style"}
    <script src="__STATIC__/doclist/js/docup/ckeditor/ckeditor.js"></script>
    <script src="__STATIC__/doclist/js/docup/main.js"></script>
    <script src="__STATIC__/doclist/js/docup/methods.js"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC__/doclist/css/docup.css">
{/block}
{block name="body"}
    <form id="docupload" class="docupload">
        <div class="left">
            <div class="tagbtn">
                {foreach name="style_category" key="k" item="v"}
                    <div class="item {eq name='$k' value='0'}active{/eq}" pid="{$v.id}" onclick="setAddCont({$v.id})">{$v.name}</div>
                {/foreach}
            </div>
            <div class="tagbox">
                <div class="item active">
                    <ul>
                        {foreach name="style" key="k2" item="v2"}
                        <li class="template"  pid="{$v2.pid}">
                            {$v2.content|html_entity_decode}
                        </li>
                        {/foreach}
                    </ul>
                </div>
            </div>
            <div class="docinfo">
                <div class="item2">
                    <b>摘要</b>
                    <textarea name="abstract"></textarea>
                </div>
                <div class="item1">
                    <select class="mdui-select" name="wid" mdui-select="{position: 'bottom'}" style="min-width:100%!important;">
                      <option value="">请选择分类</option>
                      {foreach name="category_level_list" item="vo"}
                      <option value="{$vo.id}">
                          {neq name="vo.level" value="1"}|{php}for($i=1;$i<$vo[ 'level'];$i++){echo ' ----';}{/php}{/neq}{$vo.name}
                      </option>
                      {/foreach}
                    </select>
                </div>
                <div class="item1">
                    <input type="text" name="title" placeholder="请输入标题">
                </div>
                <!-- <div class="item1">
                    <input type="text" name="author" placeholder="请输入作者">
                </div> -->
                <!-- <div class="item1">
                    <input type="text" name="price" placeholder="转发分享金额">
                </div> -->
                <!-- <div class="item3">
                    <input type="text" name="links" placeholder="请输入文章链接">
                </div> -->
                <div class="item4">
                    <input id="thumblink" type="text" name="thumb" readonly placeholder="上传文案截图或者首图">
                </div>
                <button id="uploadThumb" type="button" class="item5"><i class="mdui-icon material-icons">&#xe148;</i>点击上传</button>
            </div>
            <div class="clear"></div>
        </div>
        <div class="right">
            <div id="editor">
                
            </div>
            <div class="tijiao">
                <button type="button" id="tijiao">上传文案</button>
            </div>
        </div>
    </form>
    <script>

    </script>
{/block}
